package com.uniview.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.uniview.base.BaseDao;
import com.uniview.entity.po.CCRelation;
import com.uniview.entity.po.MailConfig;
import com.uniview.entity.po.MailSendpeople;

@Repository("mailSendpeopleDao")
public class MailSendpeopleDao extends BaseDao<MailSendpeople>{

	/**
	 * 获取邮件收件人列表
	 * 
	 * @return
	 * @throws Exception
	 */
	public List<MailSendpeople> findSendByMail() throws Exception {
		String hql = "from MailSendpeople c where c.mailType='0'";
		return this.findByHql(hql);
	}
	
	/**
	 * 获取邮件抄送人列表
	 * 
	 * @return
	 * @throws Exception
	 */
	public List<MailSendpeople> findCCByMail() throws Exception {
		String hql = "from MailSendpeople c where c.mailType='1'";
		return this.findByHql(hql);
	}
}
